package com.zt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName courses
 */
@TableName(value ="courses")
@Data
public class Courses implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String title;

    private String description;

    private Integer teacherId;

    @TableField(exist = false)
    private String teacherName;

    private Integer subjectId;

    private BigDecimal price;

    private BigDecimal originalPrice;

    private String coverImage;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    private Date updatedAt;

    private String difficultyLevel;

    private String targetGrade;

    private Integer popularity;

    private String subject;

    private static final long serialVersionUID = 1L;
}